home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / alsa / pcm / surround40.conf < prev    next >
Text File  |  2008-10-07  |  877b  |  60 lines

  1. #
  2. #  Hardware output from 4.0 speakers.
  3. #  Samples must be positioned:
  4. #    chn0 - front left
  5. #    chn1 - front right
  6. #    chn2 - rear left
  7. #    chn3 - rear right
  8. #
  9.  
  10. pcm.!surround40 {
  11.     @args [ CARD DEV ]
  12.     @args.CARD {
  13.         type string
  14.         default {
  15.             @func getenv
  16.             vars [
  17.                 ALSA_SURROUND40_CARD
  18.                 ALSA_PCM_CARD
  19.                 ALSA_CARD
  20.             ]
  21.             default {
  22.                 @func refer
  23.                 name defaults.pcm.surround40.card
  24.             }
  25.         }
  26.     }
  27.     @args.DEV {
  28.         type integer
  29.         default {
  30.             @func igetenv
  31.             vars [
  32.                 ALSA_SURROUND40_DEVICE
  33.             ]
  34.             default {
  35.                 @func refer
  36.                 name defaults.pcm.surround40.device
  37.             }
  38.         }
  39.     }
  40.     type empty
  41.     slave.pcm {
  42.         @func refer
  43.         name {
  44.             @func concat
  45.             strings [
  46.                 "cards."
  47.                 {
  48.                     @func card_driver
  49.                     card $CARD
  50.                 }
  51.                 ".pcm.surround40." $DEV ":CARD=" $CARD
  52.             ]
  53.         }
  54.     }
  55.     hint {
  56.         description "4.0 Surround output to Front and Rear speakers"
  57.         device $DEV
  58.     }
  59. }
  60.